#pragma once

class TexturedRectangle : public FlatRectangle
{
	Image_ptr _image;
public:
	TexturedRectangle(Point p0, Point p1, Point p2, const Image_ptr textureImage);
	void ColorAtIntersection(SecondIntersectionResult&, const Point&, const Ray&);
	~TexturedRectangle(){};
};

typedef boost::shared_ptr<TexturedRectangle> TexturedRectangle_ptr;